package br.com.ordersys.web.client.modules.utils;

import com.google.gwt.i18n.client.Dictionary;


public class I18nBundle{
	private Dictionary d;
	
	public I18nBundle(String name){
		try{
			d = Dictionary.getDictionary("i18n_"+name);
		}catch(Exception ignored){}
	}
	
	public String get(String key){
		String result = d == null ? null : d.get(key);
		
		return result == null ? key : result;
	}
}
